package com.learningpattern.factory.facatormethod;

import com.learningpattern.factory.IGame;

public class FactoryMethodDemo {
    public static void main(String[] args) {
        IGameFactory factory= new CSGameFactory();

        IGame game=factory.create();
        game.paly();

        factory=new LOLGameFactory();
        game=factory.create();
        game.paly();

        factory=new DOTAGameFactory();
        game=factory.create();
        game.paly();
    }

}
